package com.dragon.flow.model.message;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.dragon.flow.enm.message.OnSiteMessagesTypeEnum;
import com.dragon.flow.model.BaseModel;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

/**
 * @title:
 * @author: bruce.liu
 * @since: 2024/12/3 16:51
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("tbl_flow_onsite_message")
public class OnSiteMessage extends BaseModel implements Serializable {
    @TableId(type = IdType.ASSIGN_ID)
    @TableField("id")
    private String id;
    /**
     * 类型
     *
     * @see OnSiteMessagesTypeEnum
     */
    @TableField("type")
    private String type;
    /**
     * 类型名称
     *
     * @see OnSiteMessagesTypeEnum
     */
    @TableField("type_name")
    private String typeName;
    //标题
    @TableField("title")
    private String title;
    //url
    @TableField("url")
    private String url;
    //流程实例id
    @TableField("process_instance_id")
    private String processInstanceId;
    //业务单据id
    @TableField("business_key")
    private String businessKey;
    //流程定义id
    @TableField("process_definition_id")
    private String processDefinitionId;
    //查看的站内信的人工号
    @TableField("assignee")
    private String assignee;
    //从谁那里转过来的人的工号
    @TableField("from_assignee")
    private String fromAssignee;
    //从谁那里转过来的人的姓名
    @TableField(exist = false)
    private String formAssigneeName;
    //租户id
    @TableField("tenant_id")
    private String tenantId;
    //状态 0 未读  1 已读
    @TableField("status")
    private String status;
    /**
     * 审批内容
     */
    @TableField("content")
    private String content;
}
